/*    */ package com.zimbra.cs.account.callback;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.account.AttributeCallback;
/*    */ import com.zimbra.cs.account.DistributionList;
/*    */ import com.zimbra.cs.account.Entry;
/*    */ import com.zimbra.cs.account.Provisioning;
/*    */ import com.zimbra.cs.account.ldap.LdapProv;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class AdminGroup
/*    */   extends AttributeCallback
/*    */ {
/*    */   public void preModify(CallbackContext context, String attrName, Object attrValue, Map attrsToModify, Entry entry)
/*    */     throws ServiceException
/*    */   {}
/*    */   
/*    */   public void postModify(CallbackContext context, String attrName, Entry entry)
/*    */   {
/* 39 */     if (!(entry instanceof DistributionList)) {
/* 40 */       return;
/*    */     }
/* 42 */     Provisioning prov = Provisioning.getInstance();
/* 43 */     if (!(prov instanceof LdapProv)) {
/* 44 */       return;
/*    */     }
/* 46 */     DistributionList group = (DistributionList)entry;
/* 47 */     ((LdapProv)prov).removeFromCache(group);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/callback/AdminGroup.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */